<script src="{dede:global.cfg_skin/}/js/ajaxlogin.js" type="text/javascript"></script>
<script language="javascript" type="text/javascript" src="{dede:global.cfg_cmsurl/}/include/dedeajax2.js"></script>
<script language="javascript" type="text/javascript">
  function CheckLogin() {
    var taget_obj = document.getElementById('huiyuan');
    myajax = new DedeAjax(taget_obj, false, false, '', '', '');
    myajax.SendGet2("{dede:global.cfg_memberurl/}/ajax_loginsta.php");
    DedeXHTTP = null;
  }
</script>

<div class="cl" id="header"></div>
<div class="header_wrap">
  <div class="top">
    <div class="wi-center">
      <div class="top-left fl"> <a href="#" target="_blank" class="qqqun"> <img src="https://pub.idqqimg.com/wpa/images/group.png" border="0"> </a> <a id="wix" href="javascript:void(0);" rel="nofollow"> <img border="0" src="/skin/images/weixin.png"> </a>
        <div class="erweima none" style="display:none;"> <img border="0" src="/skin/images/erweima.jpg" title="二维码"> </div>
        <a href="/vip/" target="_blank"> <img border="0" src="/skin/images/a_d_s/tejia.gif"> </a> </div>
      <div class="header_user" id="huiyuan"> <a href="{dede:global.cfg_memberurl/}/login.php" class="i_login">登录</a> <a href="{dede:global.cfg_memberurl/}/index_do.php?fmdo=user&dopost=regnew" class="i_sign">注册</a> <a href="{dede:global.cfg_cmsurl/}/qqLogin/index.php" class="i_qqlogin"><i class="iconfont icon-qq"></i>QQ登录</a> </div>
      <script language="javascript" type="text/javascript">CheckLogin();</script>
      <div class="top-right fr"> <a class="mr15" href="/user/buy.php" target="_blank" title="金币充值">金币充值</a> <a class="mr15" href="/user/buy.php" target="_blank" title="VIP购买">VIP购买</a> </div>
    </div>
  </div>
  <div class="header fix w1200">
    <div class="logo"> <a href="/" title="{dede:global.cfg_webname/}"></a> </div>
    <div class="header_search">
      <div class="search_form">
        <form action="{dede:global.cfg_phpurl/}/search.php" id="searchForm" name="searchForm" onsubmit="return checkSearchForm()">
          <input type="hidden" name="kwtype"  value="0" />
          <input type="hidden" name="q"  value="" />
          <input type="hidden" id="type_id" name="typeid" value='0'/>
          <div class="search_input">
            <div class="search_filter" id="header_filter">
              <div class="selected_type"> 全部作品 </div>
              <dl class="search_type">
                <dd rel="0">全部作品</dd>
                <dd rel="2">网站模板</dd>
                <dd rel="1">静态模板</dd>
                <dd rel="16">源码插件</dd>
                <dd rel="54">视频教程</dd>
                <dd rel="5">文章教程</dd>
              </dl>
            </div>
            <input type="hidden" name="type" value="0" id="header_search_type"/>
            <input type="text" name="keyword" id="keyword" autocomplete="off" placeholder="懒得逛，试试搜索功能吧！" value=""/>
          </div>
          <button type="submit" class="search_btn"><i class="icon_search"></i></button>
        </form>
      </div>
      <div class="hotword"> <span>热门搜索：</span> <a href="/activity/2018/0412/25767.html" target="_blank">怎么搜索素材</a> {dede:hotwords  num=5  subday=365 maxlength=16/} </div>
    </div>
    <div class="bbs_enter"><a class="bbs-banner" href="/vip/" rel="nofollow" target="_blank"><img src="/skin/images/banner.jpg" alt="VIP福利"></a></div>
  </div>
  <div class="nav_waper">
    <div class="nav">
      <dl>
        <dd><a href="/" class="nav_name" id="cur">网站首页</a> </dd>
        {dede:channelartlist typeid='top' currentstyle='current' row='7'}
        <dd><a href="{dede:field.typeurl/}" class="nav_name">{dede:field.typename/}</a> {dede:field name=typeid runphp="yes"}
          global $dsql; $sql = "SELECT id From `#@__arctype` WHERE reid='@me' And ishidden<>1 order by sortrank asc limit 0, 100 ";
          $row = $dsql->GetOne($sql);
          @me=is_array($row)?'
          <div class="list_sec">
            <div class="vfp_cont">
              <div class="arrow"> </div>
              <div class="sc_list">':'';
                {/dede:field}
                {dede:channel type='son' noself='yes'} <a class="lf_btnla" href="[field:typelink/]">[field:typename/]</a> {/dede:channel}
                {dede:field name=typeid runphp="yes"}
                global $dsql; $sql = "SELECT id From `#@__arctype` WHERE reid='@me' And ishidden<>1 order by sortrank asc limit 0, 100 ";
                $row = $dsql->GetOne($sql);
                @me=is_array($row)?'</div>
            </div>
          </div>
          ':'';
          {/dede:field} </dd>
        {/dede:channelartlist}
      </dl>
    </div>
  </div>
</div>
<script type="text/javascript">
      <!--
      function checkSearchForm(){
        if(document.getElementById('keyword').value){
          return true;
        }else{
		  alert("请输入搜索关键词！");
		  return false;
        }
      }
	  function checkSearchForm1(){
        if(document.getElementById('keyword1').value){
          return true;
        }else{
		  alert("请输入搜索关键词！");
		  return false;
        }
      }
      -->
    </script> 